Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods / ODShape


ReadShape

The ReadShape method reads shape data from the specified storage unit into this shape.

ODShape ReadShape (in ODStorageUnit storageUnit);
storageUnit
A reference to the storage unit from which data is to be read.
return value
A reference to this shape.
DISCUSSION
Before calling this method, you must focus the storage unit to the property that contains the shape data.

If the focused property contains a value of type kODPolygon, this method reads the shape data from that value. Otherwise, if the focused property contains a value of a platform-specific shape value type, this method reads the shape data from that value.

EXCEPTIONS
kODErrUnfocusedStorageUnit
This storage unit is not focused on a property or a value.
SEE ALSO
The ODShape::WriteShape method (page 655).


Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help